/**
 * 
 */
package org.lavemylogic.friendsfinder.utilities;

import android.app.Activity;
import android.app.ProgressDialog;

/**
 * @author Paner
 *
 */
public class CustomIndicator {

	private static ProgressDialog _indicator;
	
	public static void show(Activity activity, String title, String message) {
		if(_indicator == null) {
			_indicator = ProgressDialog.show(activity, title, message);
		} else {
			_indicator.setTitle(title);
			_indicator.setMessage(message);
		}
	}
	
	public static void close() {
		if(_indicator != null) {
			_indicator.dismiss();
		}
	}
	
}
